package org.jeecg.modules.demo.sms.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 优惠券使用、领取历史表
 * @Author: jeecg-boot
 * @Date:   2020-03-01
 * @Version: V1.0
 */
@Data
@TableName("sms_coupon_history")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sms_coupon_history对象", description="优惠券使用、领取历史表")
public class SmsCouponHistory {
    
	/**id*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
	private java.lang.Integer id;
	/**couponId*/
	@Excel(name = "couponId", width = 15)
    @ApiModelProperty(value = "couponId")
	private java.lang.Integer couponId;
	/**memberId*/
	@Excel(name = "memberId", width = 15)
    @ApiModelProperty(value = "memberId")
	private java.lang.Integer memberId;
	/**couponCode*/
	@Excel(name = "couponCode", width = 15)
    @ApiModelProperty(value = "couponCode")
	private java.lang.String couponCode;
	/**领取人昵称*/
	@Excel(name = "领取人昵称", width = 15)
    @ApiModelProperty(value = "领取人昵称")
	private java.lang.String memberNickname;
	/**获取类型：0->后台赠送；1->主动获取*/
	@Excel(name = "获取类型：0->后台赠送；1->主动获取", width = 15)
    @ApiModelProperty(value = "获取类型：0->后台赠送；1->主动获取")
	private java.lang.Integer getType;
	/**createTime*/
	@Excel(name = "createTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createTime")
	private java.util.Date createTime;
	/**使用状态：0->未使用；1->已使用；2->已过期*/
	@Excel(name = "使用状态：0->未使用；1->已使用；2->已过期", width = 15)
    @ApiModelProperty(value = "使用状态：0->未使用；1->已使用；2->已过期")
	private java.lang.Integer useStatus;
	/**使用时间*/
	@Excel(name = "使用时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "使用时间")
	private java.util.Date useTime;
	/**订单编号*/
	@Excel(name = "订单编号", width = 15)
    @ApiModelProperty(value = "订单编号")
	private java.lang.Integer orderId;
	/**订单号码*/
	@Excel(name = "订单号码", width = 15)
    @ApiModelProperty(value = "订单号码")
	private java.lang.String orderSn;
	/**startTime*/
	@Excel(name = "startTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "startTime")
	private java.util.Date startTime;
	/**endTime*/
	@Excel(name = "endTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "endTime")
	private java.util.Date endTime;
	/**note*/
	@Excel(name = "note", width = 15)
    @ApiModelProperty(value = "note")
	private java.lang.String note;
	/**所属店铺*/
	@Excel(name = "所属店铺", width = 15)
    @ApiModelProperty(value = "所属店铺")
	private java.lang.Integer storeId;
	/**amount*/
	@Excel(name = "amount", width = 15)
    @ApiModelProperty(value = "amount")
	private java.math.BigDecimal amount;
	/**minPoint*/
	@Excel(name = "minPoint", width = 15)
    @ApiModelProperty(value = "minPoint")
	private java.math.BigDecimal minPoint;
}
